#include "junix.h"

int main(int argc, char **argv)
{
	if(argc==1)
	{
		fprintf(stderr,"Usage:%s file\n", argv[0]);
		exit(EXIT_FAILURE);
	}

	key_t k=ftok(argv[1],2);
	if(k==-1)
		err_sys("ftok");

	fprintf(stdout,"%d\n",(int)k);

	return 0;
}

